﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace dpmagnet.Models
{
    public class MImage
    {
        public long ID { get; set; }
        public string Caption { get; set; }
        public string URL { get; set; }
        public ThumbType ThumbType { get; set; }
        public int CommentCount { get; set; }
        public int ComposerID { get; set; }
        public MCategories Categories { get; set; }
        public MTags Tags { get; set; }
        //public ushort IndexInPost { get; set; }
        public ushort TotalScore { get; set; }
        public ushort AvgScore { get; set; }
        public int Viewed { get; set; }
        public int Liked { get; set; }
        public int Disliked { get; set; }
        public int Favorized { get; set; }
        //public MComments Comments { get; set; } //for performance consideration, do not include comments in the post model.
        
    }

    public enum ThumbType
    {
        Small_Square,
        Small_Normal,
        Medium_Square,
        Medium_Normal,
        Medium_Wide,
        Big_Square,
        Big_Normal,
        Big_Wide
    }

    public enum CopyrightType
    {
        ViewOnly,
        UseForNonprofit,
        UseForProfit
    }
}
